package com.ruoyi.web.controller.web;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.BussBannar;
import com.ruoyi.system.service.IBussBannarService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

@RestController
@RequestMapping("/web/banner")
public class WebBannerController {
    private static final Logger log = LoggerFactory.getLogger(WebBannerController.class);

    @Autowired
    private IBussBannarService bussBannarService;

    @GetMapping("/query")
    public AjaxResult query(BussBannar bussBannar) {
        List<BussBannar> list = bussBannarService.selectBussBannarList(bussBannar);
        return AjaxResult.success(list);
    }
}
